From: Florian Müllner Date: Wed, 22 Jan 2020 15:53:32 +0000 (+0100) Subject: extensionDownloader: Include version validation in update check X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~97 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ea5732fe6f40e9817cb434c2feb56a0f0a000fed;p=gnome-shell.git extensionDownloader: Include version validation in update check The extensions website will consider the setting to find the best suitable extension version, so we should transmit the parameter for better results. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/945 --- diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js index c09359eab..abaa644e0 100644 --- a/js/ui/extensionDownloader.js +++ b/js/ui/extensionDownloader.js @@ -128,8 +128,13 @@ function checkForUpdates() { metadatas[uuid] = extension.metadata; }); - let params = { shell_version: Config.PACKAGE_VERSION, - installed: JSON.stringify(metadatas) }; + let versionCheck = global.settings.get_boolean( + 'disable-extension-version-validation'); + let params = { + shell_version: Config.PACKAGE_VERSION, + installed: JSON.stringify(metadatas), + disable_version_validation: `${versionCheck}`, + }; let url = REPOSITORY_URL_UPDATE; let message = Soup.form_request_new_from_hash('GET', url, params);